package com.len.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@Table(value = "sys_role_user")
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleUser {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String userId;

    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String roleId;
}